Basic Library for WinRT
C1TreeView Structure

The C1TreeView class is a StackPanel with two elements:

You can add images to a node by grabbing its first child (the header), casting that to a StackPanel, and inserting an image element at whatever position you prefer. For example:

Visual Basic
Copy Code
Dim nodeHeader As StackPanel = TryCast(TreeNode.Children(0), StackPanel)
nodeHeader.Children.Insert(0, myImage)

 

C#
Copy Code
StackPanel nodeHeader = TreeNode.Children[0] as StackPanel;
nodeHeader.Children.Insert(0, myImage);
See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback